#!/bin/bash

csr="${1}"
shift 1

if [ -z "${csr}" ]
then
    1>&2 echo "usage:"
    1>&2 echo "  ${0} <csr> [<option>]"
    exit 1
fi

set -x

exec openssl req -text -noout -verify -in "$csr"
